function handleOnEventClick(urlString)
{
  Http.get({
  		url: urlString,
  		callback: fillPrez,
  		cache: Http.Cache.Get
	});
 

}

function fillPrez(xmlreply)
{
  if (xmlreply.status == 200)
  {
    var prezresponse = xmlreply.responseText;
    initializeDB(prezresponse);
	//document.getElementById('contentSpan').innerHTML=prezresponse;
    //alert(prezresponse);
    
  }
  else
  {
    alert("Cannot handle the AJAX call." + xmlreply.status);
  }
}


function planetaryWatch()
{
	var m_names = new Array("January", "February", "March", 
			"April", "May", "June", "July", "August", "September", 
			"October", "November", "December");


	var planets=['Mars','Sun','Venus','Mercury','Moon','Saturn','Jupiter'];
	//var T1=new Date("June/6/2009 16:20:00");
	var T1=new Date("September 5, 2005 12:55:00");
	var T2=new Date("June 14, 2009 11:20:00");
	
	//var T2=new Date("June/6/2009 18:20:00");
	var currentTime=new Date();
	var month = currentTime.getMonth();
    var day = currentTime.getDate();
    var year = currentTime.getFullYear();
	var hours = currentTime.getHours() ;
	var minutes=currentTime.getMinutes();
	
	var T3=new Date(m_names[month]+" "+day+","+" "+year+" "+hours+":"+minutes+":00")
	//alert(T3);
	//var diff=new Date();
	//diff.setTime((T2-T1)/;
	alert(Math.round((T3-T1)/3600000)%7);
	//alert(diff+":" +diff.getHours()+":"+diff.getMinutes());
	
}